package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntYearReportSocsecDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业年报社会保险
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业年报社会保险")
@Builder
public class EntReportSocsecVO {
    @ApiModelProperty("年报 ID") private String ancheid;
    @ApiModelProperty("城镇职工基本养老保险参保人数") private String so110;
    @ApiModelProperty("失业保险参保人数") private String so210;
    @ApiModelProperty("职工基本医疗保险参保人数") private String so310;
    @ApiModelProperty("工伤保险参保人数") private String so410;
    @ApiModelProperty("生育保险参保人数") private String so510;
    @ApiModelProperty("单位参加城镇职工基本养老保险缴费基数") private String totalwages_so110;
    @ApiModelProperty("单位参加失业保险缴费基数") private String totalwages_so210;
    @ApiModelProperty("单位参加职工基本医疗保险缴费基数") private String totalwages_so310;
    @ApiModelProperty("单位参加工伤保险缴费基数") private String totalwages_so410;
    @ApiModelProperty("单位参加生育保险缴费基数") private String totalwages_so510;
    @ApiModelProperty("参加城镇职工基本养老保险本期实际缴费金额") private String totalpayment_so110;
    @ApiModelProperty("参加失业保险本期实际缴费金额") private String totalpayment_so210;
    @ApiModelProperty("参加职工基本医疗保险本期实际缴费金额") private String totalpayment_so310;
    @ApiModelProperty("参加工伤保险本期实际缴费金额") private String totalpayment_so410;
    @ApiModelProperty("参加生育保险本期实际缴费金额") private String totalpayment_so510;
    @ApiModelProperty("单位参加城镇职工基本养老保险累计欠缴金额") private String unpaidsocialins_so110;
    @ApiModelProperty("单位参加失业保险累计欠缴金额") private String unpaidsocialins_so210;
    @ApiModelProperty("单位参加职工基本医疗保险累计欠缴金额") private String unpaidsocialins_so310;
    @ApiModelProperty("参加工伤保险累计欠缴金额") private String unpaidsocialins_so410;
    @ApiModelProperty("单位参加生育保险累计欠缴金额") private String unpaidsocialins_so510;

    public static EntReportSocsecVO getReportSocsec(EntYearReportSocsecDTO data) {
        return EntReportSocsecVO.builder()
                .ancheid(data.getANCHEID())
                .so110(data.getSO110())
                .so210(data.getSO210())
                .so310(data.getSO310())
                .so410(data.getSO410())
                .so510(data.getSO510())
                .totalwages_so110(data.getTOTALWAGES_SO110())
                .totalwages_so210(data.getTOTALWAGES_SO210())
                .totalwages_so310(data.getTOTALWAGES_SO310())
                .totalwages_so410(data.getTOTALWAGES_SO410())
                .totalwages_so510(data.getTOTALWAGES_SO510())
                .totalpayment_so110(data.getTOTALPAYMENT_SO110())
                .totalpayment_so210(data.getTOTALPAYMENT_SO210())
                .totalpayment_so310(data.getTOTALPAYMENT_SO310())
                .totalpayment_so410(data.getTOTALPAYMENT_SO410())
                .totalpayment_so510(data.getTOTALPAYMENT_SO510())
                .unpaidsocialins_so110(data.getUNPAIDSOCIALINS_SO110())
                .unpaidsocialins_so210(data.getUNPAIDSOCIALINS_SO210())
                .unpaidsocialins_so310(data.getUNPAIDSOCIALINS_SO310())
                .unpaidsocialins_so410(data.getUNPAIDSOCIALINS_SO410())
                .unpaidsocialins_so510(data.getUNPAIDSOCIALINS_SO510())
                .build();
    }

}
